<div data-dojo-type="dijit/layout/ContentPane" style=" overflow-x: hidden;
     overflow-y: auto; margin:0; padding:0; height:200px">
    <form data-dojo-type="dijit/form/Form" method="post" id="drugLotItemForm">
        <input id="drugId" type="hidden" />
        <table width="100%" border="0">
            <tr>
                <td width="100px"><label>ยา :</label><label>*</label></td>
                <td>
                    <select
                        dojoType="dijit.form.FilteringSelect"
                        id="drugLotItemCombo" searchAttr="drug_name" queryExpr="*${0}*"
                        autoComplete=false style="width: 200px" required="true">
                    </select>
                    <button id="drugLotItemAddOtherDrugBtn" data-dojo-type="dijit.form.Button" data-dojo-props="" type="button">
                        เพิ่มฐานข้อมูลยา
                    </button>
                </td>
            </tr>
            <tr>
                <td valign="top"><label>หมายเหตุ :</label><label>*</label></td>
                <td>
                    <input
                        dojoType="dijit.form.Textarea" id="lotNote" maxLength="500"
                        style="width: 100%; min-height: 50px" />
                </td>
            </tr>
            <tr><td>วันหมดอายุ:</td><td>
                    <input id="expireDate" dojoType="dijit.form.DateTextBox" lang="th-TH"
                            style="width:100px" required="true"
                           />
                </td></tr>
            <tr><td>จำนวน:</td><td>
                    <input id="lotAmount" type="text"
                           data-dojo-type="dijit/form/NumberTextBox"
                           name= "elevation"
                           required="true"
                           value="0" onchange="validateExpireDate()"
                           data-dojo-props="constraints:{min:-20000,max:20000,places:0},
                           invalidMessage:'Please enter a numeric value.',
                           rangeMessage:'Invalid elevation.'" />
                </td></tr>
            <tr style="display: none;">
                <td width="100px"><label>หน่วย :</label><label>*</label></td>
                <td>
                    <select
                        dojoType="dijit.form.FilteringSelect"
                        id="drugLotItemUnitCombo" searchAttr="name" queryExpr="*${0}*"
                        autoComplete=false style="width: 200px" required="false">
                    </select>
                    <button id="drugLotItemAddOtherUnitBtn" onclick="alert('ฟังก์ชันนี้ยังไม่สามารถใช้งานได้ โปรดติดต่อผู้ดูแลระบบ');"
                            data-dojo-type="dijit.form.Button" data-dojo-props="" type="button">
                        เพิ่มฐานข้อมูลหน่วย
                    </button>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <button id="drugLotItemOkBtn" data-dojo-type="dijit.form.Button" data-dojo-props="" type="button">

                    </button>
                    <button id="drugLotItemCancelBtn" data-dojo-type="dijit.form.Button" data-dojo-props="" type="button">
                        ยกเลิก
                    </button>
                </td>
            </tr>
        </table>
    </form>
</div>
